package org.smart4j.chapter2.util;

/**
 * Created by LIJ on 2018/6/13.
 */
public final class StringUtils {

    //判断字符串为空
    public static boolean isEmpty(String str){
        if(str != null){
            str = str.trim();
        }
        return org.apache.commons.lang3.StringUtils.isEmpty(str);
    }

    //判断字符串不为空
    public static boolean isNotEmpty(String str){
        return !isEmpty(str);
    }
}
